<?php
$this->pageTitle=Yii::app()->name . ' - Login';
//$this->breadcrumbs=array(
//	'Login',
//);
?>
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/components/signin.css" rel="stylesheet" type="text/css">
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/demos/signin.js"></script>   
<h1>Sign In</h1>		
			
	<div class="login-fields">
		<p>Please fill out the following form with your login credentials:</p>
		<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'login-form',
			'enableClientValidation'=>true,
			'clientOptions'=>array(
				'validateOnSubmit'=>true,
			),
		)); ?>
		<div class="field">
			<?php echo $form->labelEx($model,'username'); ?>
			<?php echo $form->textField($model,'username',array(
				'placeholder'=>'Username',
				'class'=>'login username-field')
			); ?>
			<?php echo $form->error($model,'username'); ?>
		</div>
	
		<div class="field">
			<?php echo $form->labelEx($model,'password'); ?>
			<?php echo $form->passwordField($model,'password',array(
				'placeholder'=>'Password',
				'class'=>'login password-field')); ?>
			<?php echo $form->error($model,'password'); ?>
		</div>
	</div>
	<div class="login-actions">
		<span class="login-checkbox">
		<?php echo $form->checkBox($model,'rememberMe',array(
			'tabindex'=>'4',
			'class'=>'field login-checkbox')); ?>
		<?php echo $form->label($model,'rememberMe',array(
			'class'=>'choice')); ?>
		<?php echo $form->error($model,'rememberMe'); ?>
		
		<?php echo CHtml::submitButton('Login',array('class'=>'button btn btn-secondary btn-large')); ?>
	</div>
<?php $this->endWidget(); ?>
<!-- form -->
